<?php
header("Refresh:1 ;url=./index3.php");
error_reporting(E_ALL ^ E_NOTICE);
include_once "service.php";
$service = new Contact();
$id = $_REQUEST['id'];

try {
    $service->del($id);
} catch (Error $error) {
    exit($error->getMessage());
}